package com.yunhai.model.entity.fms;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@ApiModel("配方步骤")
@Data
@Accessors(chain = true)
@TableName("fms_formula_spec")
public class FmsFormulaSpecEntity {

    private Long id;

    private Long specId;

    private Long parentId = 0L;
    //是否默认选中。
    private Integer defaultSelected;
    //默认选中的id。
    private Long defaultSelectedId;
    //名称
    private String name;
    //编号
    private String number;

    private Long productId;
    private Integer enableCustomize;

    @TableField( exist = false )
    List<FmsFormulaSpecEntity> specList = new ArrayList<>();
}
